<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>前端Debugger实战</title>
    <style>
        *,
        *::after,
        *::before {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            min-height: 100vh;
        }

        :root:focus-within {
            scroll-behavior: smooth;
        }

        body {
            min-height: inherit;
        }
    </style>
</head>

<body>
</body>

<script>
    /* 控制台中 ctrl + p 搜索对应的js的文件 */
    /*
    反debugger
        1.停止所有的 debugger
            ctrl + F8 或 deactivate breakpoints
        2.停止某个 debugger
            右键选中该位置 never pause here
    */
    /* 
    代码一步一步的运行
        F9  step

    跳过遇到的下一个函数
        F10 step over next function call 

    进入遇到的下一个函数
        F11  step into function call

    当运行进入到函数内部时，跳出函数体，相当于 return 了吧
        shift + F11  step out of current functiion
    */
    "use strict"; {
        function a() {
            let aVar = "a";
            b(aVar);
        };

        function b(aVar) {
            debugger;
            let bVar = `b${aVar}`;
            c();
        };

        function c() {
            let cVar = "c";
        };

        let modeuleVar = "module";
        var globalVar = "global";

        a();
    };
</script>

</html>